#include <iostream>

int main() {
    std::cout << sizeof(int) << std::endl;
    std::cout << sizeof(int *) << std::endl;

    int var = 10;
    int *ptr = &var;
    int **ptr2 = &ptr;

    std::cout << &var << ' ' << ptr << ' ' << &ptr << ' ' << *ptr <<  ' ' << ptr2 << std::endl;

    int *empty_pointer = nullptr;
    // int k = *empty_pointer;

    int a[5] = {1, 2, 3, 4, 5};
    int *add_ptr = a;
    *add_ptr = 1024;
    std::cout << add_ptr << std::endl;

    add_ptr ++ ;
    std::cout << add_ptr << std::endl;


    return 0;
}
